import Login from '../page/Login'
import Article from '../page/Article'
import Layout from '../page/Layout'
import About from '../page/About'
import Board from '../page/Board'
import NotFound from '../page/NotFound'
import { createBrowserRouter } from 'react-router-dom'
const router = createHashRouter([
    {
        path: '/',
        element: <Layout></Layout>,
        children: [
            {
                index: true,
                element: <Board></Board>
            },
            {
                path: 'about',
                element: <About></About>
            }
        ]
    },
    {
        path: '/login',
        element: <Login></Login>
    },
    {
        path: '/article/:name/:id',
        element: <Article></Article>
    },
    {
        path: '*',
        element: <NotFound></NotFound>
    }
])
export default router